package cn.edu.zafu.bigdata.x.wupeng.h;

import java.io.File;

public class FileDemo {
    public static void main(String[] args) {
        File file = new File("./files/invoice.txt");
        System.out.println(file.getAbsolutePath());
        System.out.println(file.getPath());
        System.out.println(file.getName());
        System.out.println(file.getParent());
        System.out.println(file.length());
        System.out.println(file.canWrite());
        System.out.println(file.exists());
    }
}
